<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			ins_cd: $('#ins_cd').val(),
			ins_cn_nm: $('#ins_cn_nm').val(),
			service_no: $('#service_no').val(),
			service_name: $('#service_name').val(),
			param_no: $('#param_no').val(),
			param_name: $('#param_name').val()
		});
  }
  
  function addChnhitch(url){	  
	  commonDetail(url,"save","chnhitchTableId");
  }
  function modifyChnhitch(url){	  
	  commonDetail(url,"update","chnhitchTableId");
  }
  function deleteChnhitch(url){	  
	  commonDel(url,"delete","chnhitchTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#chnhitchTableId").jpgrid({
			url: "getChnhitchInfListJson.do",
			columns: [
				{title: "所属机构", field: "INSNAME"},
				{title: "所属地区", field: "AREANAME"},
				{title: "业务名称", field: "SERNAME"},
				{title: "业务参数名称", field: "PURNAME"},
				{title: "卡bin", field: "CARDBIN"},
				{title: "发卡行", field: "CARDINS"},
				{title: "卡介质", field: "CRD_MEDIUM",width:80},
				{title: "卡性质", field: "CRD_NATURE",width:80},
				{title: "最小交易金额(元)", field: "MIN_AMT",width:80},
				{title: "最大交易金额(元)", field: "MAX_AMT",width:80},
				{title: "所属通道组别", field: "CHNGRPNAME"},
				{title: "套扣业务", field: "HSERNAME"},
				{title: "套扣业务参数", field: "HPURNAME"}				
			]
		});	  
  });
  </script>
</head>


<body class="easyui-layout list_body"  >
	<form id="chnhitchForm" name="chnhitchForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<div style="padding:3px">
					<span>机构号:</span>
					<input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
					<span>机构名称:</span>
					<input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >
					<span>业务编号:</span>
					<input id="service_no" type="text" name="service_no"  class="easyui-textbox"  >
					<span>业务名称:</span>
					<input id="service_name" type="text" name="service_name"  class="easyui-textbox"  >
				</div>
				<div style="padding:3px">
					<span>业务参数编号:</span>
					<input id="param_no" type="text" name="param_no"  class="easyui-textbox"  >
					<span>业务参数名称:</span>
					<input id="param_name" type="text" name="param_name"  class="easyui-textbox"  >					
				 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
				 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
				</div>	 
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="chnhitchTableId" fit="true"></table>
		</div>
	</form>
</body>
 </html>
